import Request from './request'
//登录
export const loginAdmin = (url,data)=> Request({
    url,
    method:'post',
    params:data
})
//退出登录
export const logOut = (url)=> Request({
    url,
    method:'post',
})

//获取首页
export const base_count = (url)=> Request({
    url,
    method:'post',
})

//
//商品
//
//商品管理
//获得全部商品
export const productList = (url)=> Request({
    url,
    method:'get',
})
//修改商品状态
export const productStatus = (url)=> Request({
    url,
    method:'get',
})
//查找商品
export const productSearch = (url)=> Request({
    url,
    method:'get',
})
//商品详情
export const productInfo = (url)=> Request({
    url,
    method:'get',
})
//商品级联选择器
export const productType = (url)=> Request({
    url,
    method:'get',
})
//添加商品
export const productAdd = (url)=> Request({
    url,
    method:'get',
})
//修改商品
export const productEdit = (url)=> Request({
    url,
    method:'get',
})

//修改商品分类
export const  categoryEdit  = (url)=> Request({
    url,
    method:'get',
})
//添加商品分类
export const  categoryAdd  = (url)=> Request({
    url,
    method:'get',
})

//
//订单
//
//订单管理
//获取订单列表
export const orderList = (url)=> Request({
    url,
    method:'get',
})
//订单搜索
export const orderSearch = (url)=> Request({
    url,
    method:'get',
})





//
//用户
//
//用户列表
//获取用户列表
export const userList = (url,data)=> Request({
    url,
    method:'get',
    data
})